
let CurdViewMixin = {
  props: {
    data: {
      type: Array,
      default() {
        return []
      }
    },
    items: {
      type: Array,
      default() {
        return []
      }
    },
    columns: {
      type: Array,
      default() {
        return []
      }
    },
    actions: null,
    rowKey: null,
    viewName: String,
    outSlots: null,
    ctxProps: null
  }
}

export let defineCurdView = function (def) {
  let ret = {
    mixins: [
      CurdViewMixin
    ],
    ...def
  }
  return ret
}
